import request from '@/utils/request';

// 顶部当日数据统计
export const dailyDataStatistics = (data) => {
  return request({
    url: '/console/index/dailyDataStatistics',
    method: 'POST',
    data,
  })
}
// 交易走势
export const getOrderCount = (data) => {
  return request({
    url: '/console/index/getOrderCount',
    method: 'POST',
    data,
  })
}
// 访客走势
export const getVisitorData = (data) => {
  return request({
    url: '/console/index/getVisitorData',
    method: 'POST',
    data,
  })
}
// 交易类目数据

export const getTurnoverInfo = (data) => {
  return request({
    url: '/console/index/getTurnoverInfo',
    method: 'POST',
    data,
  })
}
// 新增用户 
export const getUserCountData = (data) => {
  return request({
    url: '/console/index/getUserCountData',
    method: 'POST',
    data,
  })
}
// 新增会员
export const getVipCountData = (data) => {
  return request({
    url: '/console/index/getVipCountData',
    method: 'POST',
    data,
  })
}
// 热销商品
export const getHotSalesInfo = (data) => {
  return request({
    url: '/console/index/getHotSalesInfo',
    method: 'POST',
    data,
  })
}